package cn.mylearn.sys.controller.user;

import java.util.Date;

import com.jfinal.plugin.activerecord.Model;

public class SysUserModel extends Model<SysUserModel> {

	/**
	 * 序列化ID
	 */
	private static final long serialVersionUID = 5367616083649077391L;

	public static SysUserModel dao = new SysUserModel().dao();

	public String getId() {
		return getStr("id");
	};

	public String getUserName() {
		return getStr("username");
	}

	public String getAccount() {
		return getStr("account");
	}

	public String getPassword() {
		return getStr("password");
	}

	public String getEmail() {
		return getStr("email");
	}

	public String getPhoneNum() {
		return getStr("phonenum");
	}

	public Date getCreateTime() {
		return getDate("createtime");
	}

	public Date getUpdateTime() {
		return getDate("updatetime");
	}

	public String getEnabled() {
		return getStr("isenabled");
	}
	
	///
	public void setId(String id) {
		set("id",id);
	};

	public void setUserName(String username) {
		set("username",username);
	}

	public void setAccount(String account) {
		set("account",account);
	}

	public void setPassword(String password) {
		set("password",password);
	}

	public void setSalt(String salt) {
		set("salt",salt);
	}
	
	public void setEmail(String email) {
		set("email",email);
	}

	public void setPhoneNum(String phonenum) {
		set("phonenum",phonenum);
	}

	public void setCreateTime(Date createtime) {
		set("createtime",createtime);
	}

	public void setUpdateTime(Date updatetime) {
		set("updatetime",updatetime);
	}

	public void setEnabled(String isenabled) {
		set("isenabled",isenabled);
	}
	
}
